package cn.richard.demo.swagger.dto;

import java.time.LocalDate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel("学生实体")
@Data
@Accessors(chain = true)
public class Student {
	@ApiModelProperty(value="学生ID", hidden = true)
	private Integer id;
	
	@ApiModelProperty(value="学生姓名", required = true, example = "张三")
	private String name;
	
	@ApiModelProperty(value="学生性别", required = true, allowableValues = "male,female")
	private String gender;
	
	@ApiModelProperty(value="学生生日", required = false, example = "2010-10-10")
	private LocalDate birthday;
}
